package com.outstanding.his.treatment.service.impl;

import java.util.Collection;

import com.outstanding.his.treatment.dao.ITreatmentDao;
import com.outstanding.his.treatment.domain.ChineseMedicine;
import com.outstanding.his.treatment.domain.Treatment;
import com.outstanding.his.treatment.domain.WesternMedicine;
import com.outstanding.his.treatment.service.ITreatmentService;

public class TreatmentService implements ITreatmentService {
	private ITreatmentDao treatmentDao;

	public void setTreatmentDao(ITreatmentDao treatmentDao) {
		this.treatmentDao = treatmentDao;
	}

	@Override
	public Treatment getTreatment(Integer treatmentId) {
		return this.treatmentDao.getTreatment(treatmentId);
	}

	@Override
	public Collection<Treatment> getTreatmentList() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Treatment submitTreatment(Treatment treatment) {
		treatment = this.treatmentDao.submitTreatment(treatment);
		return treatment;
	}

	@Override
	public Treatment updateTreatment(Treatment treatment) {
		treatment = this.treatmentDao.updateTreatment(treatment);
		return treatment;
	}

	@Override
	public void deleteWesternMedicine(WesternMedicine westernMedicine) {
		this.treatmentDao.deleteWesternMedicine(westernMedicine);
	}

	@Override
	public void deleteChineseMedicine(ChineseMedicine chineseMedicine) {
		this.treatmentDao.deleteChineseMedicine(chineseMedicine);
		
	}

}
